/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package plum.util;

import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;

import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;

import org.eclipse.emf.ecore.EObject;

import plum.*;

/**
 * <!-- begin-user-doc -->
 * The <b>Adapter Factory</b> for the model.
 * It provides an adapter <code>createXXX</code> method for each class of the model.
 * <!-- end-user-doc -->
 * @see plum.PlumPackage
 * @generated
 */
public class PlumAdapterFactory extends AdapterFactoryImpl {
	/**
	 * The cached model package.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected static PlumPackage modelPackage;

	/**
	 * Creates an instance of the adapter factory.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public PlumAdapterFactory() {
		if (modelPackage == null) {
			modelPackage = PlumPackage.eINSTANCE;
		}
	}

	/**
	 * Returns whether this factory is applicable for the type of the object.
	 * <!-- begin-user-doc -->
	 * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
	 * <!-- end-user-doc -->
	 * @return whether this factory is applicable for the type of the object.
	 * @generated
	 */
	@Override
	public boolean isFactoryForType(Object object) {
		if (object == modelPackage) {
			return true;
		}
		if (object instanceof EObject) {
			return ((EObject)object).eClass().getEPackage() == modelPackage;
		}
		return false;
	}

	/**
	 * The switch that delegates to the <code>createXXX</code> methods.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected PlumSwitch<Adapter> modelSwitch =
		new PlumSwitch<Adapter>() {
			@Override
			public Adapter caseDecisionModel(DecisionModel object) {
				return createDecisionModelAdapter();
			}
			@Override
			public Adapter caseDependency(Dependency object) {
				return createDependencyAdapter();
			}
			@Override
			public Adapter caseDecision(Decision object) {
				return createDecisionAdapter();
			}
			@Override
			public Adapter caseGroup(Group object) {
				return createGroupAdapter();
			}
			@Override
			public Adapter caseSimpleDecision(SimpleDecision object) {
				return createSimpleDecisionAdapter();
			}
			@Override
			public Adapter caseMinMaxDecision(MinMaxDecision object) {
				return createMinMaxDecisionAdapter();
			}
			@Override
			public Adapter caseChoiceDecision(ChoiceDecision object) {
				return createChoiceDecisionAdapter();
			}
			@Override
			public Adapter caseChoiceValue(ChoiceValue object) {
				return createChoiceValueAdapter();
			}
			@Override
			public Adapter caseAction(Action object) {
				return createActionAdapter();
			}
			@Override
			public Adapter caseDefaultSelectChoiceValueAction(DefaultSelectChoiceValueAction object) {
				return createDefaultSelectChoiceValueActionAdapter();
			}
			@Override
			public Adapter caseSelectChoiceValueAction(SelectChoiceValueAction object) {
				return createSelectChoiceValueActionAdapter();
			}
			@Override
			public Adapter caseValidityAction(ValidityAction object) {
				return createValidityActionAdapter();
			}
			@Override
			public Adapter caseValueAction(ValueAction object) {
				return createValueActionAdapter();
			}
			@Override
			public Adapter caseDefaultValueAction(DefaultValueAction object) {
				return createDefaultValueActionAdapter();
			}
			@Override
			public Adapter caseMinMaxValuesAction(MinMaxValuesAction object) {
				return createMinMaxValuesActionAdapter();
			}
			@Override
			public Adapter caseNameAction(NameAction object) {
				return createNameActionAdapter();
			}
			@Override
			public Adapter caseCloneAction(CloneAction object) {
				return createCloneActionAdapter();
			}
			@Override
			public Adapter defaultCase(EObject object) {
				return createEObjectAdapter();
			}
		};

	/**
	 * Creates an adapter for the <code>target</code>.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param target the object to adapt.
	 * @return the adapter for the <code>target</code>.
	 * @generated
	 */
	@Override
	public Adapter createAdapter(Notifier target) {
		return modelSwitch.doSwitch((EObject)target);
	}


	/**
	 * Creates a new adapter for an object of class '{@link plum.DecisionModel <em>Decision Model</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see plum.DecisionModel
	 * @generated
	 */
	public Adapter createDecisionModelAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link plum.Dependency <em>Dependency</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see plum.Dependency
	 * @generated
	 */
	public Adapter createDependencyAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link plum.Decision <em>Decision</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see plum.Decision
	 * @generated
	 */
	public Adapter createDecisionAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link plum.Group <em>Group</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see plum.Group
	 * @generated
	 */
	public Adapter createGroupAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link plum.SimpleDecision <em>Simple Decision</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see plum.SimpleDecision
	 * @generated
	 */
	public Adapter createSimpleDecisionAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link plum.MinMaxDecision <em>Min Max Decision</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see plum.MinMaxDecision
	 * @generated
	 */
	public Adapter createMinMaxDecisionAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link plum.ChoiceDecision <em>Choice Decision</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see plum.ChoiceDecision
	 * @generated
	 */
	public Adapter createChoiceDecisionAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link plum.ChoiceValue <em>Choice Value</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see plum.ChoiceValue
	 * @generated
	 */
	public Adapter createChoiceValueAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link plum.Action <em>Action</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see plum.Action
	 * @generated
	 */
	public Adapter createActionAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link plum.DefaultSelectChoiceValueAction <em>Default Select Choice Value Action</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see plum.DefaultSelectChoiceValueAction
	 * @generated
	 */
	public Adapter createDefaultSelectChoiceValueActionAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link plum.SelectChoiceValueAction <em>Select Choice Value Action</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see plum.SelectChoiceValueAction
	 * @generated
	 */
	public Adapter createSelectChoiceValueActionAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link plum.ValidityAction <em>Validity Action</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see plum.ValidityAction
	 * @generated
	 */
	public Adapter createValidityActionAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link plum.ValueAction <em>Value Action</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see plum.ValueAction
	 * @generated
	 */
	public Adapter createValueActionAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link plum.DefaultValueAction <em>Default Value Action</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see plum.DefaultValueAction
	 * @generated
	 */
	public Adapter createDefaultValueActionAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link plum.MinMaxValuesAction <em>Min Max Values Action</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see plum.MinMaxValuesAction
	 * @generated
	 */
	public Adapter createMinMaxValuesActionAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link plum.NameAction <em>Name Action</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see plum.NameAction
	 * @generated
	 */
	public Adapter createNameActionAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link plum.CloneAction <em>Clone Action</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see plum.CloneAction
	 * @generated
	 */
	public Adapter createCloneActionAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for the default case.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @generated
	 */
	public Adapter createEObjectAdapter() {
		return null;
	}

} //PlumAdapterFactory
